import request from "../../utils/request.js"

/**
 * 获取资金账户类型列表
 * @param {*} data
 */
export const getFundAccountTypePage = (data) => {
    return request({
        url: "/finance/fundAccountType/page",
        method: "get",
        data
    })
}

/**
 * 删除资金账户类型
 * @param {*} data
 */
export const deleteFundAccountType = (data) => {
    return request({
        url: "/finance/fundAccountType/batchDelete",
        method: "delete",
        data
    })
}

/**
 * 保存或更新资金账户类型
 * @param {*} data
 */
export const saveOrUpdateFundAccountType = (data) => {
    return request({
        url: "/finance/fundAccountType/saveOrUpdate",
        method: "put",
        data
    })
}

/**
 * 获取收入记录列表
 * @param {*} data
 */
export const getIncomeRecordsPage = (data) => {
    return request({
        url: "/finance/income/page",
        method: "get",
        data
    })
}

/**
 * 删除收入记录
 * @param {*} data
 */
export const deleteIncomeRecords = (data) => {
    return request({
        url: "/finance/income/batchDelete",
        method: "delete",
        data
    })
}

/**
 * 新增或修改收入记录
 * @param {*} data
 */
export const saveOrUpdateIncomeRecords = (data) => {
    return request({
        url: "/finance/income/saveOrUpdate",
        method: "put",
        data
    })
}